class Admin::UsersController < Admin::AdminController

  def index
    @users = User.joins(:department).where.not(user_name: '000000')
  end

  private

  def user_params
    params.require(:user).permit(:user_name, :password, :password_confirmation, :department_id, :admin )
  end

end
